<template>
	<view class="box text-center">
		<image class="image_border " src="../../static/image/gm_ico_cg@2x.png" mode=""></image>
		<view class="mt_center" v-if="type==3">购买成功，请等待客服人员联系</view>
		<view class="mt_center" v-else>购买成功</view>
		<view class="butns flexs" @click="toindex">返回首页</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type:''
			}
		},
		onLoad(option) {
			this.type=option.type

		},
		methods: {
			toindex() {
				uni.switchTab({
					url: '../index/index'
				})
			}
		}
	}
</script>

<style>
	.box {
		width: 100%;
		height: 100%;
		color: #333333;
		text-align: center;
	}

	.image_border {
		width: 200rpx;
		height: 200rpx;
		margin-top: 268rpx;
	}

	.mt_center {
		font-size: 28rpx;
		margin-top: 100rpx;
	}

	.butns {
		width: 250rpx;
		height: 60rpx;
		background: #FFDD47;
		border-radius: 10rpx;
		font-size: 26rpx;
		margin: 580rpx auto 0;
	}
</style>
